package com.example.zhunongzonghe.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ZnCollectFarmBean implements Serializable {
    /**
     * 主键，农产品收藏表
     */
    private Integer id;

    /**
     * 农产品id
     */
    private Integer farmId;

    /**
     * 用户id，属于哪个用户
     */
    private Integer userId;

    /**
     * 收藏状态，1为收藏 0为未收藏
     */
    private Integer collectStatus;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    private static final long serialVersionUID = 1L;
}
